<%-- 
    Document   : alt_cliente
    Created on : 20/08/2013, 21:52:47
    Author     : Tainara
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Alterar Endereco:</h1>
        <form id="form" action="ClienteServlet?cmd=alterar" method="POST">
            <input name="id" value="${pessoa.id}" type="hidden">
            <label>Nome:</label>
            <input name="nome" value="${cliente.nome}" type="text" /> <br />
            <label>CPF:</label>
            <input name="cpf" value="${cliente.cpf}" type="text" /> <br />
            <label>RG:</label>
            <input name="rg" value="${cliente.rg}" type="text" /> <br />
            <label>Email</label>
            <input name="email" value="${cliente.email}" type="text" /> <br />
            <label>Celular:</label>
            <input name="celular" value="${cliente.celular}" type="text" /> <br />
            <label>Telefone:</label>
            <input name="telefone" value="${cliente.telefone}" type="text" /> <br />
            <label>Login:</label>
            <input name="login" value="${usuario.login}" type="text" /> <br />
            <label>Senha:</label>
            <input name="senha" value="${usuario.senha}" type="password" /> <br />

            <input type="submit" value="Alterar"/>
            <c:if test="${!empty msg}">
                <script type="text/javascript">
                        alert('${msg}');
                </script>
            </c:if>
        </form>
    </body>
</html>
